import Vue from "vue"
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store({

	state: {
		screenData: [],
		shopList: {},
		discussList: [],
		getdishesList: [],
		classmessageList: [],
		merchantid: ''
	},

	//场景: 改变state的 值
	mutations: {
		screenChange(state, data) {
			state.screenData = data
		},
		setShopList(state, data) {
			state.shopList = data
		},
		setDiscussList(state, data) {
			state.discussList = data
		},
		setGetdishesList(state, data) {
			state.getdishesList = data
		},
		setClassmessageList(state, data) {
			state.classmessageList = data
		},
		setMerchantid(state, data) {
			state.merchantid = data
		},

	},

})



export default store
